package models;

import common.BasicModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.sql.Date;

@Entity
@Table(name="movie")
public class Movie extends BasicModel{
    public String name;

    public String actors;

    public Double score;

    public String diretor;

    @Column(name="release_time")
    public Date releaseTime;

    public Integer time;

    public String summary;

    public String status;

    public String fromArea;

    public String language;

    @Column(name="movie_type")
    public String movieType;

    public String img;

    public Movie(String name, String actors, Double score, String diretor, Date releaseTime, Integer time, String summary, String status) {
        this.name = name;
        this.actors = actors;
        this.score = score;
        this.diretor = diretor;
        this.releaseTime = releaseTime;
        this.time = time;
        this.summary = summary;
        this.status = status;
    }
}